var db = require("../../javascript/mysql");
var mysql = new db.mysqlClient("accident");
;
function genProductInfo() {
    plan = {
        planA: {
            "name": "交通工具意外险",
            "company": "安心互联网保险",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "200000",
            "train_death": "100000",
            "ship_death": "100000",
            "bus_death": "100000",
            "price": "15.00"
        },
        planB:{
            "name": "交通工具意外险",
            "company": "安心互联网保险",
            "days": "1y",
            "people_count": "1",
            "airplane_death": "400000",
            "train_death": "300000",
            "ship_death": "200000",
            "bus_death": "100000",
            "price": "25.00"            
        }
    }
    for( k in plan ){ data = plan[k];mysql.insertData( data )}mysql.close()
}
